package ycl.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import ycl.common.base.entity.BaseEntity;


import java.time.LocalDateTime;

/**
 * <p>
 * 黑名单
 * </p>
 *
 * @author ycl
 * @since 2022-06-22 20:06:25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("blacklist")
@ApiModel(value = "Blacklist对象", description = "黑名单")
public class Blacklist extends BaseEntity {

        
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    @TableField("user_id")
    private Long userId;

    @Schema(description = "原因")
    @TableField("content")
    private String content;

    @Schema(description = "备注")
    @TableField("remark")
    private String remark;

    @Schema(description = "删除标志, 1存在, 0删除")
    @TableField("del_flag")
    private Boolean delFlag;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @Schema(description = "创建用户id, 必须是管理员才能操作")
    @TableField("create_user_id")
    private Long createUserId;

    @Schema(description = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @Schema(description = "永久封禁, 1是, 0否")
    @TableField("forever")
    private Boolean forever;


}
